require 'fileutils'

desc "Update Javascript libs to latest"
task :update_javascripts do
  FileUtils.rm_rf 'lib/javascripts'
  `svn export http://dev.rubyonrails.org/svn/rails/spinoffs/scriptaculous/src lib/javascripts`
  `svn export http://dev.rubyonrails.org/svn/rails/trunk/railties/html/javascripts/prototype.js lib/javascripts/prototype.js`
end